/*
* Copyright (c) 2016 . All Rights Reserved.
*/
package com.cgmnx.admin.web.controller.rbac;

import com.cgmnx.admin.web.controller.BaseAdminController;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
 * @author: created  Date: 16/12/25 Time: 下午2:41
 * @version: 1.0
 */
@Controller
public class UserUiAdminController extends BaseAdminController {

    @RequestMapping("/cgmnx/manager/list.html")
    public ModelAndView list() {
        ModelAndView modelAndView = new ModelAndView("pages/manager/list");
        setLoginUser(modelAndView);
        setMenuList(modelAndView);
        modelAndView.addObject("bizInfo", "{}");
        return modelAndView;
    }

    @RequestMapping("/cgmnx/manager/add.html")
    public ModelAndView add() {
        ModelAndView modelAndView = new ModelAndView("pages/manager/add");
        setLoginUser(modelAndView);
        setMenuList(modelAndView);
        modelAndView.addObject("bizInfo", "{}");
        return modelAndView;
    }


    @RequestMapping("/cgmnx/manager/updatePassword.html")
    public ModelAndView updatePassword() {
        ModelAndView modelAndView = new ModelAndView("pages/password/edit");
        setLoginUser(modelAndView);
        setMenuList(modelAndView);
        modelAndView.addObject("bizInfo", "{}");
        return modelAndView;
    }
}